<div class="bjui-pageContent" >
    <div data-layout-h="0">
        <!-- 内容区 -->
        <form action="{:U('Sales/order_add')}" class="pageForm nice-validator n-red" data-loadingmask='false' data-toggle="validate" novalidate="novalidate" data-reload-navtab="true" method="post" >
            <input type="hidden" name="id" value="{$order.id}" />
            <input type="hidden" name="uid" value="{$order.uid}" />
            <input type="hidden" name="mid" value="{$order.mid}" />
            <input type="hidden" name="order_id" value="{$order.order_id}" />
            <input type="hidden" name="supplier_id" value="{$order.supplier_id}" />
            <input type="hidden" name="tours_id" value="{$order.tours_id}" />
            <input type="hidden" name="insure_id" value="{$order.insure_id}" />

            <table class="table table-condensed table-hover">
                <tr>
                    <th ><label style='margin-left:40px;'>预订产品：</label></th>
                    <td>
                        <a href="{$order.tours_url}" target='_blank' class="labeltext">{$order.tours_title}【ID：{$order.tours_id}】</a>
                    </td>

                </tr>
                <tr>
                    <th><label style='margin-left:40px;'>应收总额：</label></th>
                    <td>
                        <input type="text" size="30" data-toggle='required' name="payment" value="{$order.payment|default=''}" />
                    </td>


                </tr>
                <tr>
                    <th><label style='margin-left:40px;'>供应商：</label></th>
                    <td>
                        {$order.supplier_name}
                    </td>


                </tr>
                <tr>
                    <th><label style='margin-left:40px;'>投保险种：</label></th>
                    <td>
                        {eq name="order.insure_num" value="0"}
                        放弃投保
                        {else /}
                        {$order.insure_name}
                        {/eq}
                    </td>


                </tr>
                <tr>
                    <th><label style='margin-left:40px;'>出发时间：</label></th>
                    <td>
                        {$order.go_date}
                    </td>


                </tr>
                <tr>
                    <th><label style='margin-left:40px;'>游客信息：</label></th>
                    <td>
                        <table class="table-bordered table-condensed" width='530' style='margin-top: 10px; margin-bottom: 10px;'>
                            <tr style="background: #0055CC;color:#FFF;">
                                <th align="center" width="25%">联系人</th>
                                <th align="center" width="25%">出游人数</th>
                                <th align="center" width="25%">手机号</th>
                                <th align="center" width="25%">邮箱号</th>
                            </tr>
                            <tr>
                                <td align="center">{$order.username|default=''}</td>
                                <td align="center">{$order.adult}成 {$order.child}童</td>
                                <td align="center">{$order.mobile}</td>
                                <td align="center">{$order.email}</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <th><label style='margin-left:40px;'>特殊人群：</label></th>
                    <td>
                        <table class="table-bordered table-condensed" width='530' style='margin-top: 10px; margin-bottom: 10px;'>
                            <tr style="background: #0055CC;color:#FFF;">
                                <th align="center" width="25%">有无孕妇</th>
                                <th align="center" width="25%">有无80周岁以上老人</th>
                                <th align="center" width="25%">有无外籍友人</th>
                                <th align="center" width="25%">全部都是未成年</th>
                            </tr>
                            <tr>
                                <td align="center">{php}echo $order['pregnantwoman']=="Y"?"有":"无"{/php}</td>
                                <td align="center">{php}echo $order['olderman']=="Y"?"有":"无"{/php}</td>
                                <td align="center">{php}echo $order['foreigners']=="Y"?"有":"无"{/php}</td>
                                <td align="center">{php}echo $order['minors']=="Y"?"是":"否"{/php}</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <th><label style='margin-left:40px;'>结算信息：</label></th>
                    <td>
                        <table class="table-bordered table-condensed" width='530' style='margin-top: 10px; margin-bottom: 10px;'>
                            <tr style="background: #0055CC;color:#FFF;">
                                <th align="center" width="25%">成人</th>
                                <th align="center" width="25%">儿童</th>
                                <th align="center" width="25%">保险</th>
                                <th align="center" width="25%">合计应收</th>
                            </tr>
                            <tr>
                                <td align="center">
                                    {$order.adult}人×{$order.adult_price}元={$order['adult']*$order['adult_price']}
                                </td>
                                <td align="center">
                                    {$order.child}人×{$order.child_price}元={$order['child']*$order['child_price']}
                                </td>
                                <td align="center">
                                    {$order.insure_num}份×{$order.insure_price}元={$order['insure_num']*$order['insure_price']}
                                </td>
                                <td align="center">
                                    {$order['adult']*$order['adult_price']+$order['child']*$order['child_price']+$order['insure_num']*$order['insure_price']}
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <th><label style='margin-left:40px;'>特殊需求：</label></th>
                    <td>
                        {empty name='order.demand'}暂无需求{else /}{$order.demand}{/empty}
                    </td>
                </tr>
                <tr>
                    <th><label style='margin-left:40px;'>用户定位：</label></th>
                    <td>
                        <table class="table-bordered table-condensed" width='530' style='margin-top: 10px; margin-bottom: 10px;'>
                            <tr style="background: #0055CC;color:#FFF;">
                                <th align="center" width="25%">IP地址</th>
                                <th align="center" width="25%">归属地</th>
                                <th align="center" width="25%">所属网络</th>
                                <th align="center" width="25%">该用户订单累计</th>
                            </tr>
                            <tr>
                                <td align="center">
                                    {$order.login_ip|default="--"}
                                </td>
                                <td align="center">
                                    {$order.country|default="--"}
                                </td>
                                <td align="center">
                                    {$order.area|default="--"}
                                </td>
                                <td align="center">
                                    {$order.count|default="--"}
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>

            </table>
        </form>
    </div>

</div>
<div class="bjui-pageFooter" border='none'>
    <ul>
        <li><button type="button" class="btn btn-close">关闭</button></li>
        <li><button type="submit" class="btn btn-default">提交</button></li>
    </ul>
</div>